/**
 *  机构变更套件
 */
const salaryApplyChildren = [
    {
        label: '变更理由',
        formId: 'reason',
        key: 'reason',
        tag: 'TextArea',
        rules: [
            {
                required: true,
                message: '请输入'
            }
        ],
        options: {
            placeholder: '请输入',
            disabled: true,
            maxLength: 500
        },
        isSummary: true
    },
    {
        label: '附件',
        formId: 'OssUpload_attachment',
        tag: 'OssUpload',
        key: 'OssUpload',
        options: {},
        rules: [
            {
                required: false,
                message: '请选择附件'
            }
        ],
        name: 'file',
        buttonText: '点击上传附件',
        uploadProps: {
            multiple: true, // 多文件
            dragAble: false, // 是否为拖拽上传
            checkFileSize: 0, // 限制单文件上传最大值，单位为MB
            checkFileType: '', // 允许上传的文件格式
            maxCount: 10, // 上传的文件个数上限
            help: null // 帮助文案
        }
    },
    {
        label: '审批内容id',
        formId: 'hiDataId',
        tag: 'Input',
        inFormAuth: false,
        inRenderDom: false
    },
    // 隐藏域, 第一次提交流程, 暂存 Url 参数要用到
    {
        label: '薪资版本',
        formId: 'version',
        tag: 'Input',
        rules: [],
        options: {
            disabled: true
        },
        inFormAuth: false,
        inRenderDom: false
    },
    // 隐藏域, 第一次提交流程, 暂存 Url 参数要用到
    {
        label: '操作类型',
        formId: 'ftype',
        tag: 'Input',
        rules: [],
        options: {
            disabled: true
        },
        inFormAuth: false,
        inRenderDom: false
    }
];

export const salaryApplyControl = {
    label: '薪资参考',
    cmpType: 'custom',
    formId: '',
    key: 'SalaryApply',
    tag: 'SalaryApply',
    formStyle: true,
    children: salaryApplyChildren
};
